Also send xenbus notifications using evtchn as handle. It's
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 30 Sep 2005 16:37:52 +0000 (17:37 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 30 Sep 2005 16:37:52 +0000 (17:37 +0100)
always up-to-date as it's reinitialised for us by external
tools during save/restore and migration.

linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_comms.c

index 7c9d8f6ec20e6759f14afd9ee6a8308b4d369397..7d0ef111bc7028d197b4636e5be4a6f61c1031b8 100644 (file)
@@ -147,7 +147,7 @@ int xb_write(const void *data, unsigned len)
                data += avail;
                len -= avail;
                update_output_chunk(out, avail);
-               notify_remote_via_irq(xenbus_irq);
+               notify_remote_via_evtchn(xen_start_info->store_evtchn);
        } while (len != 0);
 
        return 0;
@@ -192,7 +192,7 @@ int xb_read(void *data, unsigned len)
                pr_debug("Finished read of %i bytes (%i to go)\n", avail, len);
                /* If it was full, tell them we've taken some. */
                if (was_full)
-                       notify_remote_via_irq(xenbus_irq);
+                       notify_remote_via_evtchn(xen_start_info->store_evtchn);
        }
 
        /* If we left something, wake watch thread to deal with it. */